﻿using EnvDTE;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vs_ChatGpt.Model;

namespace VisualStudioTranslation.Model
{
    internal class TypeModel
    {
        internal static string Message = "请选择代码块后在执行此操作!";
        internal static string _Translate = $"翻译成中文,返回译文结果:\r\n";

        /// <summary>
        /// 读取配置文件
        /// </summary>
        static MyConfigModel config = MyConfig.Get(); 

        /// <summary>
        /// 翻译
        /// </summary>
        internal static string Translate = config.Prompt;
    }

    /// <summary>
    /// 插入位置
    /// </summary>
    internal enum InsertPointEnum
    {
        /// <summary>
        /// 选择代码前插入
        /// </summary>
        Before = 0,

        /// <summary>
        /// 选择代码后插入
        /// </summary>
        After = 1,

        /// <summary>
        /// 替换选择代码
        /// </summary>
        Replace = 2
    }

    /// <summary>
    /// 服务
    /// </summary>
    internal enum ServiceEnum
    {
        /// <summary>
        /// OpenAI原生服务
        /// </summary>
        OpenAI_兼容服务 = 0,

        /// <summary>
        /// 微软Azure云
        /// </summary>
        Azure = 1, 
    }
}
